 <%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
 <%@page import="com.wanmait.shoppingsys.vo.Admin"%>
<% String path = request.getServletContext().getContextPath(); %>
<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>后台登录-特产一号店</title>
    
    <link rel="stylesheet" href="<%=path %>/css/font.css">
	<link rel="stylesheet" href="<%=path %>/css/xadmin.css">
	
    <script type="text/javascript" src="<%=path %>/js/jquery-3.3.1.min.js"></script> 
    <script src="<%=path %>/lib/layui/layui.js" charset="UTF-8"></script>
    <script type="text/javascript" src="<%=path %>/js/xadmin.js"></script>

</head>
<body>
    <!-- 顶部开始 -->
    <div class="container">
        <div class="logo"><a href="index.html">特产一号店</a></div>
        <div class="left_open">
            <i title="展开左侧栏" class="iconfont">&#xe699;</i>
        </div>
        <ul class="layui-nav left fast-add" lay-filter="">
          <li class="layui-nav-item">
            <a href="javascript:;">+新增</a>
            <dl class="layui-nav-child"> <!-- 二级菜单 -->
              <dd><a onClick="x_admin_show('资讯','http://www.baidu.com')"><i class="iconfont">&#xe6a2;</i>资讯</a></dd>
              <dd><a onClick="x_admin_show('图片','http://www.baidu.com')"><i class="iconfont">&#xe6a8;</i>图片</a></dd>
               <dd><a onClick="x_admin_show('用户','http://www.baidu.com')"><i class="iconfont">&#xe6b8;</i>用户</a></dd>
            </dl>
          </li>
        </ul>
        
          <%
		   Admin admin = (Admin)session.getAttribute("admin");
		  %>
        
        <ul class="layui-nav right" lay-filter="">
          <li class="layui-nav-item">
            <a href="javascript:;"> <%=admin.getName() %></a>
            <dl class="layui-nav-child"> <!-- 二级菜单 -->
              <dd><a onClick="x_admin_show('个人信息','http://www.baidu.com')">个人信息</a></dd>
              <dd><a onClick="x_admin_show('切换帐号','http://www.baidu.com')">切换帐号</a></dd>
              <dd><a href="<%=path %>/administrator/login.jsp">退出</a></dd>
            </dl>
          </li>
          <li class="layui-nav-item to-index"><a href="<%=path %>/index.jsp">前台首页</a></li>
        </ul>

<%-- <li><a href="/ShoppingSys/manage.jsp">首页</a></li>
<!-- <li><a href="/ShoppingSys/administrator/register.jsp">注册</a></li> -->
 <%
Admin admin=(Admin)session.getAttribute("admin");
if(admin==null){
%>
<li><a href="/ShoppingSys/administrator/login.jsp">登录</a></li>
<%
}
else{
%> 
<li><a href="/ShoppingSys/SpecialtyManageController?action=list">物品信息</a></li>
<li><a href="/ShoppingSys/manage/add.jsp">添加物品</a></li>
<li><a href="/ShoppingSys/SpecialtyManageController?action=findall">删除物品</a></li>
<!-- <li><a href="/ShoppingSys/manage/updatelist.jsp">更改物品信息</a></li> -->
<li><a href="/ShoppingSys/manage/find.jsp">查找物品</a></li>
<li><a href="/ShoppingSys/SpecialtyManageController?action=updatelist">更改物品信息</a></li>
<li><a href="/ShoppingSys/SpecialtyManageController?action=findall">删除物品</a></li>
<li><a href="/ShoppingSys/SpecialtyManageController?action=orderlist">查看订单</a></li>
<li><a href="/ShoppingSys/SpecialtyManageController?action=userinfolist">查看用户信息</a></li>
<li><a href="/ShoppingSys/SpecialtyManageController?action=evaluation">查看用户评论</a></li>
<li>欢迎<%=admin.getName() %>登陆</li> 
<%} %> 
</ul>
</nav> 
 --%>
	

